home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9010 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  717 b 

  1. Path: male.EBay.Sun.COM!sooraj!murali
  2. From: murali@sooraj.ebay.sun.com (Murali Chari)
  3. Newsgroups: comp.lang.c
  4. Subject: A question on for loop..
  5. Date: 7 Mar 1996 17:56:26 GMT
  6. Organization: Sun Microsystems Inc.
  7. Distribution: world
  8. Message-ID: <4hn80a$98q@male.EBay.Sun.COM>
  9. Reply-To: murali@sooraj.ebay.sun.com
  10. NNTP-Posting-Host: sooraj.ebay.sun.com
  11.  
  12. Hi,
  13.  
  14. In the following piece of code:
  15.  
  16. for(i=0;i< 20; i++)
  17.  
  18. {
  19.  
  20.  
  21.   
  22.   if(condition==FALSE)
  23.   continue;
  24.  
  25.  
  26.  
  27.  
  28.  
  29. Let us assume i=10 before it entered the loop.
  30. The condition was false. So the continue statement
  31. got executed.
  32.  
  33. Will control now go to the third statement in the for loop?
  34. i.e. will i be incremented by 1 and again tested for the condition?
  35.  
  36. Thanx 
  37.  
  38. Murali
  39.  
  40.